package com.syh.jn.scm.infrastructure.repository.model.system;

import com.syh.core.ddd.infrastructure.repository.model.SuperModel;
import lombok.*;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;

/**
 * 角色-权限关系表
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@Entity
@Table(name = "T_SYSTEM_ROLE_MENU")
@EqualsAndHashCode(callSuper = true)
public class RoleMenuModel extends SuperModel {
  /**
   * 角色id
   */
  @Column(name = "ROLE_ID", columnDefinition = "bigint COMMENT '角色id'")
  private Long roleId;
  /**
   * 菜单id
   */
  @Column(name = "MENU_ID", columnDefinition = "bigint COMMENT '菜单id'")
  private Long menuId;
  /**
   * 菜单 menuCatalogId
   */
  @Column(name = "MENU_CATALOG_ID", columnDefinition = "varchar(50) COMMENT '菜单menuCatalogId'")
  private String menuCatalogId;

}

